package com.winning.java.aop;

import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: rqx
 * @create: 2023/6/5 11:37
 * @description:
 */
@Slf4j
@RestController
@RequestMapping("/aop")
public class Main {

    @Autowired
    private BaseClass obj1;

    @ApiOperation("aop测试")
    @GetMapping("/test")
    public void AOPTest()
    {
        obj1.call1();
        obj1.call2();
        obj1.call3();
        obj1.call4();
    }
}
